package com.erp.erp_dao.Inquiry;

import com.erp.erp_entitys.Inquiry.*;
import com.erp.erp_entitys.Inquiry.InquiryEntity;
import com.erp.erp_entitys.Inquiry.req.inquiryStatisticsReq;
import com.erp.erp_entitys.Inquiry.res.inquiryStatisticsRes;

import java.util.List;
import java.util.Map;

public interface IInquiryDAO {
    int deleteByPrimaryKey(Integer id);

    int insert(InquiryEntity record);

    int insertSelective(InquiryEntity record);

    InquiryEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(InquiryEntity record);

    int updateByPrimaryKey(InquiryEntity record);

    InquiryProductEntity selectProductByInId(Integer inId);

    InquiryFileEntity selectFileByInId(Integer inId);

    InquiryRecordEntity selectRecordByInId(Integer inId);

    List<InquiryEntity> selectInquiryList(InquiryVo iVo);

    List<InquiryEntity> selectByIdList(List<Integer> list);

    int updateBoxStatusBykey(InquiryVo iVo);

    /**
     * 按主键查询询盘及关联数据
     * @param id
     * @return
     */
    InquiryEntity selectInfoById(Integer id);

    List<InquiryEntity> isExist(String oddNumber);

    int getLatestOddNumber();
    /**
     * 询盘统计-分页
     * @param req
     * @return
     */
    List<inquiryStatisticsRes> inquiryStatisticsList(inquiryStatisticsReq req);

}